add

abstract fun add(word: String): Boolean

Adds the given word to the dictionary and schedules a write to disk.

Return

true if the given word is valid and not a duplicate

Parameters

word

a word to add to the dictionary. It must be UTF8, between 1 and 99 bytes long, and without leading or trailing ASCII whitespace

Throws

when word is empty or blank

when the engine is closed